import { _decorator, Component, Label, Node } from "cc";
import { IPlayer } from "../Common";
const { ccclass, property } = _decorator;

@ccclass("PlayerManager")
export class PlayerManager extends Component {
  init({ nickname }: IPlayer) {
    this.node.getComponent(Label).string = nickname;
    this.node.active = true;
  }
}
